import { connect } from 'react-redux';
import React from 'react';
import {
  Switch,
  Route
} from 'react-router-dom';

import LoginTpl from './login_tpl';
import {
  testAction
} from './../../actions/a_test';

const LoginView = connect( (store) => {
  return {
    text: store.test.test
  }
}, {
  testAction
})(LoginTpl);


export const loginContainer = () => {
  return <Switch>
    <Route path="/" component={LoginView} />
  </Switch>
}